home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: The Best of Public Domain / Best of Public Domain, The Nr.42 (19xx)(Garfield, Andi)(DE).zip / Best of Public Domain, The Nr.42 (19xx)(Garfield, Andi)(DE).adf / docp < prev    next >
Text File  |  1989-11-20  |  23KB  |  729 lines

  1.         INSTRUCTIONS FOR SHELL V2.06M    20-Jan-87
  2.         -----------------------------
  3.  
  4. SHELL V2.04. (C)Copyright 1986, Matthew Dillon, All Rights Reserved.
  5. You may distribute this program for non-profit only.
  6.  
  7.         Shell V2.06M by Steve Drew.
  8.         --------------------------
  9. --------------------------------------------------------------------------
  10. Note:
  11.     These Instructions are my specific 2.06M Instructions and Matt's 2.04
  12.     merged together. 
  13.     A preceding | indicates that funtionality has been changed/enhanced,
  14.     a preceding * indicates that this is functionality or a command
  15.     that has been added in my manx version.
  16.  
  17.     for version releases see readme file. 
  18. ---------------------------------------------------------------------------
  19.  
  20.       (A)   Compiling
  21.       (B)   Overview
  22.       (C)   Quicky tech notes on implimentation.
  23.  
  24.       (D)   Command pre-processor
  25.       (E)   Command Line Editing
  26.       (F)   Function Keys
  27.       (G)   Command-list
  28.       (H)   special SET variables
  29.  
  30.       (I)   example .login file.
  31.  
  32.  
  33.  
  34. (A) COMPILING:
  35.  
  36. |   makefile supplied.
  37. |
  38. |   Your manx should be patched for 1.2 (c.lib) otherwise fexec wont work
  39. |   and you'll just get "command not found" for all external commands.
  40.  
  41.  
  42. (B) OVERVIEW:
  43.  
  44.    OVERVIEW of the major features:
  45.  
  46.    -simple history
  47.    -redirection
  48.    -piping
  49.    -command search path 
  50.    -aliases
  51.    -variables & variable handling (embedded variables)
  52.    -file name expansion via '?' and '*'
  53.    -conditionals
  54.    -source files  (w/ gotos and labels)
  55.    -many built in commands to speed things up
  56.  
  57.    PROBLEMS
  58.  
  59.    -Append '>>' does NOT work with BCPL programs.  It does work with all
  60.     internal and non-bcpl programs.
  61.  
  62.    -This version runs UNDER WORKBENCH 1.2 ONLY.
  63.     
  64.  
  65. (C) QUICK TECH NOTES:
  66.  
  67.    PIPES have been implimented using temporary RAM: files.  Thus, you
  68.    should be careful when specifying a 'ram:*' expansion as it might
  69.    include the temp. files.  These files are deleted on completion of
  70.    the pipe segment.
  71.  
  72.    The file names used are completely unique, even with multiple shell
  73.    running simultaniously.
  74.  
  75.    My favorite new feature is the fact that you can now redirect to and
  76.    from, and pipe internal commands.  'echo charlie >ram:x', for
  77.    instance.  Another favorite:
  78.  
  79.       echo "echo mem | shell" | shell
  80.  
  81.    To accomplish these new features, I completely re-wrote the command
  82.    parser in execom.c
  83.  
  84.    The BCPL 'RUN' command should not be redirected.. .strange things
  85.    happen.
  86.  
  87.    NO BCPL program should be output-append redirected (>>).
  88.  
  89.  
  90. (D)   Command pre-processor
  91.  
  92.    preprocessing is done on the command line before it is passed on to
  93.    an internal or external routine:
  94.  
  95.    ^c       where c is a character is converted to that control character.
  96.             Thus, say '^l' for control-l.
  97.  
  98.    $name    where name is a variable name.  Variable names can consist of
  99.             0-9, a-z, A-Z, and underscore (_).  The contents of the
  100.             specified variable is used.  If the variable doesn't exist,
  101.             the specifier is used.  That is, if the variable 'i' contains
  102.             'charlie', then '$i' -> 'charlie'.  If the variable 'i' doesn't
  103.             exist, then '$i'->'$i' .
  104.  
  105.    ;        delimits commands.   echo charlie ; echo ben.
  106.  
  107.    ' '      (a space). Spaces delimit arguments.
  108.  
  109.    "string" a quoted string.  For instance, if you want to echo five spaces
  110.             and an 'a':
  111.  
  112.             echo      a       -> a
  113.             echo "    a"      ->      a
  114.  
  115.    \c       overide the meaning of special characters.  '\^a' is a
  116.             circumflex and an a rather than control-a.  To get a backslash,
  117.             you must say '\\'.
  118.  
  119.             also used to overide alias searching for commands.
  120.  
  121.    >file    specify output redirection.  All output from the command is
  122.             placed in the specified file.
  123.  
  124.    >>file   specify append redirection (Does not work with BCPL programs).
  125.  
  126.    <file    specify input redirection.  The command takes input from the
  127.             file rather than the keyboard (note: not all commands require
  128.             input).  It makes no sense to say  'echo <charlie' since
  129.             the 'echo' command only outputs its arguments.
  130.  
  131.    |        PIPE specifier.  The output from the command on the left becomes
  132.             the input to the command on the right.  The current SHELL
  133.             implimentation uses temporary files to store the data.
  134.  
  135.    !!       execute the previously executed command.
  136.    !nn      (nn is a number).  Insert the history command numbered n (see
  137.             the HISTORY command)
  138.    !partial search backwards through the history list for a command which
  139.             looks the same as 'partial', and execute it.
  140.  
  141.    #        Enter comment.  The rest of the line is discarded (note: \#
  142.             will, of course, overide the comment character's special
  143.             meaning)
  144.  
  145.  
  146. (E) Command Line Editing
  147.  
  148. *  - Command line can be upto 255 chars.
  149. *  - Inserts and deletes are handled correctly over
  150. *    multiple screen lines. The program will keep track of
  151. *    the line width should the window get resized.
  152. *
  153. *    KEY DEFINITIONS:
  154. *             Up Arrow    Recal previous commands
  155. *          Down Arrow  Recal commands
  156. *        Left Arrow  Move cursor about command line.
  157. *        Right Arrow  "     "      "      "      "
  158. *        ^A        Toggle insert/overtype mode.
  159. *        ^D        EOF
  160. *        ^E        Put cursor at end of text.
  161. *        ^K        Delete to end of line.
  162. *        ^R        Retype current line.
  163. *        ^U        Erase entire line.
  164. *        ^X        Erase entire line.
  165. *        ^Z        Put cursor at start of text.
  166. *        f1 - f10    Execute command if variable exists.
  167. *        F1 - F10    More commands (Shifted f keys).
  168. *        Help         invokes help command
  169.  
  170. (F) Function keys.
  171.         
  172. *  - Just set the variable f1-f10 or F1-F10 (shifted) to
  173. *    the desired string.
  174. *
  175. *      eg. 
  176. *           $ set f1 "dir -s df0:"            
  177.  
  178.  
  179. (G)  COMMAND LIST:
  180.  
  181.    The first argument is the command-name... if it doesn't exist in the
  182.    list below and isn't an alias, it is assumed to be an external (disk)
  183.    command.
  184.  
  185.    AUTOMATIC SOURCING may be accomplished by naming shell scripts with a
  186.    .sh suffix.  Thus, if you say 'stuff' and the file 'stuff.sh' exists in
  187.    your current or C: directory, it will be SOURCED with any arguments you
  188.    have placed in the $_passed variable.
  189.  
  190.    EXCEPTION_PROCESSING:
  191.  
  192.       if no _except variable exists, any command which fails causes the
  193.       rest of the line to abort as if an ABORTLINE had been executed.  If
  194.       the _except variable exists, it is of the form:
  195.  
  196.       "nnn;commands..."
  197.  
  198.       where nnn is some value representing the minimum return code required
  199.       to cause an error.  Whenever a command returns a code which i*
  200.       larger or equal to nnn, the commands in _except are executed before
  201.       anything.  WHEN _except EXISTS, THE COMMAND LINE DOES NOT ABORT
  202.       AUTOMATICALLY.  Thus, if you want the current line being executed
  203.       to be aborted, the last command in _except should be an "abortline".
  204.  
  205.       exception handling is disabled while in the exception handling routine
  206.       (thus you can't get into any infinite loops this way).
  207.  
  208.       Thus if _except = ";", return codes are completely ignored.
  209.  
  210.       example:
  211.  
  212.       set _except "20;abortline"
  213.  
  214.  
  215.    ABORTLINE
  216.  
  217.       or just 'abort'.  Causes the rest of the line to be aborted. Used in
  218.       conjunction with exception handling.
  219.  
  220.       % echo a;abort;echo b
  221.       a
  222.  
  223.  
  224.    HELP
  225.  
  226. |     simply displays all the available commands.  The commands are
  227. |     displayed in search-order.  That is, if you give a partial name
  228. |     the first command that matches that name in this list is the one
  229. |     executed.  Generally, you should specify enough of a command so that
  230. |     it is completely unique.
  231.  
  232.    QUIT
  233.    EXIT
  234.    RETURN [n]
  235.  
  236.       quit my SHELL (awww!).  End, El-Zappo, Kapow. Done, Finis.  If you
  237.       use RETURN and are on the top source level, the shell exits with the
  238.       optional return code.  (see RETURN below)
  239.  
  240.  
  241.    SET
  242.    SET name
  243.    SET name string
  244.  
  245.       The first method lists all current variable settings.
  246.       The second method lists the setting for that particular variable,
  247.       or creates the variable if it doesn't exist (to "")
  248.       The last method sets a variable to a string.
  249.  
  250.       see the section on special _ variables down below
  251.  
  252.  
  253.    UNSET name name name....
  254.  
  255.       unset one or more variables.  Deletes them entirely.
  256.  
  257.  
  258.    ALIAS
  259.    ALIAS name
  260.    ALIAS name string
  261.  
  262.       same as SET, but applies to the alias list.  You can alias a single
  263.       name to a set of commands.  For instance:
  264.  
  265.       alias hi "echo a; echo b"
  266.  
  267.       then you can simply say 'hi'.  Aliases come in two forms the second
  268.       form allows you to place the arguments after an alias in a variable
  269.       for retrieval:
  270.  
  271.       alias xxx "%i echo this $i is a test"
  272.  
  273.       % xxx charlie
  274.       this charlie is a test
  275.  
  276.       The rest of the command line is placed in the specified variable
  277.       for the duration of the alias.  This is especially useful when used
  278.       in conjunction with the 'FOREACH' command.
  279.  
  280.  
  281.    UNALIAS name name name...
  282.  
  283.       delete aliases..
  284.  
  285.  
  286.    ECHO string
  287.    ECHO -n string
  288.  
  289.       echo the string to the screen.  If '-n' is specified, no newline is
  290.       output.
  291.  
  292.  
  293.    STRHEAD  varname breakchar string
  294.  
  295.       remove everything after and including the breakchar in 'string' and
  296.       place in variable 'varname':
  297.  
  298.          % strhead j . aaa.bbb
  299.          % echo $j
  300.          aaa
  301.          %
  302.  
  303.  
  304.    STRTAIL  varname breakchar string
  305.  
  306.       remove everything before and including the breakchar in 'string' and
  307.       place in variable 'varname':
  308.  
  309.          % strtail j . aaa.bbb
  310.          % echo $j
  311.          bbb
  312.          %
  313.  
  314.  
  315.    SOURCE file [arguments]
  316.  
  317.       execute commands from a file.  You can create SHELL programs in
  318.       a file and then execute them with this command.  Source'd files
  319.       have the added advantage that you can have loops in your command
  320.       files (see GOTO and LABEL).  You can pass SOURCE files arguments
  321.       by specifying arguments after the file name.  Arguments are passed
  322.       via the _passed variable (as a single string).
  323.  
  324.       Automatic 'sourcing' is accomplished by placing a .sh extension on
  325.       the file and executing it as you would a C program:
  326.  
  327.       --------- file hello.sh ---------
  328.       foreach i ( $_passed ) "echo yo $i"
  329.       ---------------------------------
  330.       % hello a b c
  331.       yo a
  332.       yo b
  333.       yo c
  334.  
  335.  
  336.    MV from to
  337.    MV from from from ... from todir
  338.  
  339.       Allows you to rename a file or move it around within a disk.  Allows
  340.       you to move 1 or more files into a single directory.
  341.  
  342.  
  343.    CD
  344.    CD ..
  345.    CD path
  346.  
  347. |     Change your current working directory.  You may specify '..' to go
  348. |     back one directory (this is a CD specific feature, and does not
  349. |     work with normal path specifications).
  350.  
  351.       CD without any arguments displays the path of the directory you
  352.       are currently in.
  353.  
  354.  
  355.    PWD
  356.       rebuild _cwd by backtracing from your current directory.
  357.  
  358.  
  359.    RM [-r] file file file...
  360.  
  361.       DeleteFile().  Remove the specified files.  Remove always returns
  362.       errorcode 0.  You can remove empty directories.  The '-r' option
  363.       will remove non-empty directories by recursively removing all sub
  364.       directories.
  365. *     If  you specify any wildcard deletes the files will be listed as
  366. *     they are deleted. This can be suppressed by redirecting to nil: 
  367. *    eg.  rm df0:.../*.o   delete all .o files from every directory.
  368.  
  369. |  COPY [-u][-d] file file
  370. |  COPY [-u][-d] file1 file2...fileN dir
  371. |  COPY [-r][-u][-d] dir1 dir2...dirN dir
  372.  
  373.       copy files or directories.  when copying directories, the "-r" option
  374.       must be specified to copy subdirectories as well.  Otherwise, only
  375.       top level files in the source directory are copied.
  376.  
  377. *     All files will be displayed as they are copied and directory's displayed
  378. *     as they are created. This output can be suppessed by redirecting to nil:
  379. *    eg. copy -r >nil: df0: df1:
  380. *     copy will abort after current file on Control-C.
  381.  
  382. |     copy by default sets the date of the destination file to that of
  383. |     the source file. To overide this feature use the -d switch.
  384.  
  385. |     Another useful option is the -u (update) mode were copy will not
  386. |     copy any files which exists already in the destination directory
  387. |     if the destination file is newer or equal to the source file.
  388. |     This is usefull when developing code say in ram: eg. 'copy *.c ram:'
  389. |     when done you can copy -u ram: df1: and only those modules you have 
  390. |     modified will be copied back.
  391.  
  392. |     copy command will now create the destination directory if it does
  393. |     not exist when specified as 'copy [-r] dir dir'. If you specify
  394. |     copy file file file dir, then 'dir' must already exist.
  395.  
  396.  
  397. *  RUN file
  398. *
  399. *     Finds the specified file via $_path variable, or 2nd via AmigaDos
  400. *     PATH setting, then calls AmigaDos Run command with the explicit
  401. *     path/command. This command is really only implemented to allow
  402. *     consistancy in first checking the shell pathing before amigados
  403. *     pathing. Since shell allows for device names in _path it does'nt
  404. *     care when you swap disks; if you had "df0:c/" in _path then whatever
  405. *     disk you have in df0: will be checked. AmigaDos PATH always resolves
  406. *     to a Lock that points only to a particular disk label:directory.
  407.  
  408.  
  409.    MKDIR name name name...
  410.  
  411.       create the following directories.
  412.  
  413.  
  414.    HISTORY [partial_string]
  415.  
  416.       Displays the enumerated history list.  The size of the list is
  417.       controlled by the _history variable.  If you specify a partial-
  418.       string, only those entries matching that string are displayed.
  419.  
  420.  
  421.    MEM
  422.  
  423.       Display current memory statistics for CHIP and FAST.
  424.  
  425.  
  426.    CAT [file file....]
  427.  
  428.       Type the specified files onto the screen.  If no file is specified,
  429.       STDIN in used.  CAT is meant to output text files only.
  430.  
  431.  
  432. |  DIR [-sdf] [path path ... ]
  433.  
  434. |    - default output show's date, protection, block size, byte size.
  435. *    - Dir command rewritten to allow options:
  436. *        -s short mutil(4) collum display of files
  437. *            (directory files are in italics).
  438. *        -d directorys only
  439. *        -f files only
  440. *
  441. *      eg. dir -s *.info       (short directory of all .info files.)
  442.                 
  443. |      the directory command will also not expand files that are
  444. |      directories if as result of a wildcard expansion. eg:
  445. |      'dir df0:*'  and 'dir df0:' will give same results
  446. |      expect previously if df0:* was specified all subdirectories
  447. |      of df0: were expanded also.
  448. |      (to list one level of subdirectories: 'dir df0:*/*')
  449.  
  450. |      Directories always sorted.
  451.  
  452. |      Wild card expansions:
  453. |        ?    match any single character
  454. |        *    match any string
  455. |        .../    recursive search down ALL sub directories
  456. |
  457. |          dir df0:.../           does a full (All) sorted directory
  458. |       dir .../*.c          start at current dir and go down looking
  459. |                      for all .c files.
  460. |
  461. |      Exclude pattern matching specifier: !
  462. |          dir !*.info will       exclude all *.info files in current dir.
  463. |          dir df0:.../!*.info    full directory tree of df0: but exclude
  464. |                                 any ugly .info files.
  465. |          dir !*.o !*.c (will result in ALL files matching since what
  466. |          doesnt match the !*.o will match the !*.c)
  467.  
  468.  
  469.    DEVINFO [device: device:... ]
  470.  
  471.       Display Device statistics for the current device (CD base), or
  472.       specified devices.
  473. |     Gives block used/free, % used, errs and volume name.
  474.  
  475.  
  476.    FOREACH varname ( strings ) command
  477.  
  478.       'strings' is broken up into arguments.  Each argument is placed in
  479.       the variable 'varname' in turn and 'command' executed.  To execute
  480.       multiple commands, place them in quotes:
  481.  
  482.       % foreach i ( a b c d ) "echo -n $i;echo \" ha\""
  483.       a ha
  484.       b ha
  485.       c ha
  486.       d ha
  487.  
  488.       Foreach is especially useful when interpreting passed arguments in
  489.       an alias or source file.
  490.  
  491.       NOTE: a GOTO inside will have indeterminate results.
  492.  
  493.  
  494.    FOREVER command
  495.    FOREVER "command;command;command..."
  496.  
  497.       The specified commands are executed over and over again forever.
  498.  
  499.       -Execution stops if you hit ^C
  500.       -If the commands return with an error code.
  501.  
  502.       NOTE: a GOTO inside will have indeterminate results.
  503.  
  504.  
  505.    RETURN [value]
  506.  
  507.       return from a source file.  The rest of the source file is
  508.       discarded.  If given, the value becomes the return value for the
  509.       SOURCE command.  If you are on the top level, this value is returned
  510.       as the exit code for the shell.
  511.  
  512.  
  513.    IF argument conditional argument ;
  514.    IF argument
  515.  
  516.       If a single argument is something to another argument.  Conditional
  517.       clauses allowed:
  518.  
  519.       <, >, =, and combinations (wire or).  Thus <> is not-equal, >=
  520.       larger or equal, etc...
  521.  
  522.       If the left argument is numeric, both arguments are treated as
  523.       numeric.
  524.  
  525.       usually the argument is either a constant or a variable ($varname).
  526.  
  527.       The second form if IF is conditional on the existance of the argument.
  528.       If the argument is a "" string, then false , else TRUE.
  529.  
  530.  
  531.    ELSE ;
  532.  
  533.       else clause.
  534.  
  535.  
  536.    ENDIF ;
  537.  
  538.       the end of an if statement.
  539.  
  540.  
  541.    LABEL name
  542.  
  543.       create a program label right here.
  544.  
  545.  
  546.    GOTO label
  547.  
  548.       goto the specified label name.  You can only use this command from a
  549.       source file.
  550.  
  551.  
  552.    DEC var
  553.    INC var
  554.  
  555.       decrement or increment the numerical equivalent of the variable and
  556.       place the ascii-string result back into that variable.
  557.  
  558.  
  559.    INPUT varname
  560.  
  561.       input from STDIN (or a redirection, or a pipe) to a variable.  The
  562.       next input line is placed in the variable.
  563.  
  564.  
  565.    VER
  566.  
  567.       display my name and the version number.
  568.  
  569.  
  570.    SLEEP timeout
  571.  
  572.       Sleep for 'timeout' seconds.
  573.  
  574. *  PS
  575.  
  576. *    Gives the following info:
  577. *      
  578. *      Proc Command Name         CLI Type    Pri.  Address  Directory
  579. *       1   SHELL                Initial CLI   0      97b0  Stuff:shell
  580. *       2   sys:c/clockmem       Background  -10    2101a8  Workdisk:
  581. *       3   c:emacs              Background    0    212f58  Stuff:shell
  582. *       4   sys:c/VT100          Background    0    227328  Workdisk:
  583. *    
  584. *       Address is the addres of the task, directory is the process
  585. *       currently set directory.
  586.  
  587.  
  588. (H) SPECIAL SET VARIABLES
  589.  
  590. |   _prompt
  591. |        This variable is set to the command you wish executed that will
  592. |        create your prompt. Under manx version set this to the string
  593. |     for your prompt not a command to create the prompt. (Restriction
  594. |     due to commandline editing support.
  595.  
  596.    _history
  597.          This variable is set to a numerical value, and specifies how far
  598.          back your history should extend.
  599.  
  600.    _debug
  601.          Debug mode... use it if you dare.  must be set to some value
  602.  
  603.    _verbose
  604.          Verbose mode (for source files).  display commands as they are
  605.          executed.
  606.  
  607.    _maxerr
  608.          The worst (highest) return value to date.  To use this, you usually
  609.          set it to '0', then do some set of commands, then check it.  
  610.  
  611.    _lasterr
  612.          Return code of last command executed.  This includes internal
  613.          commands as well as external comands, so to use this variables
  614.          you must check it IMMEDIATELY after the command in question.
  615.  
  616.    _cwd
  617.          Holds a string representing the current directory we are in from
  618.          root.  The SHELL can get confused as to its current directory if
  619.          some external program changes the directory.  Use PWD to rebuild
  620.          the _cwd variable in these cases.
  621.  
  622.    _passed
  623.          This variable contains the passed arguments when you SOURCE a file
  624.          or execute a .sh file.  For instance:
  625.  
  626.          test a b c d
  627.  
  628.          -------- file test.sh ----------
  629.          echo $_passed
  630.          foreach i ( $_passed ) "echo YO $i"
  631.          --------------------------------
  632.  
  633.  
  634.    _path
  635.          This variable contains the search path when the shell is looking
  636.          for external commands.  The format is:  DIR,DIR,DIR  Each DIR must
  637.          have a trailing ':' or '/'.  The current directory is always
  638.          searched first.  The entire path will be searched first for the
  639.          <command>, then for <command>.sh (automatic shell script sourcing).
  640.  
  641. *        The default _path is set to  "c:,df1:c/,df0:c/,ram:,ram:c/"
  642. *     When using 'run' command Shell will now use it's own search
  643. *     path first to find the command to run. If it fails to find
  644. *     the command (but the Run command was found) it executes the
  645. *     command line anyway to let amigaDos search path take over.
  646.  
  647. *  _insert
  648. *        Set's the default for insert/overtype mode for command line
  649. *     editing. ^A toggles between, but after <RET> the default is 
  650. *         set back as indicated by this variable. By default _insert is 1
  651. *        indicating insert mode on setting to zero will make overtype
  652. *     the default.
  653.  
  654. *  _width
  655. *     Indicates the console window width, 77 if unset. 
  656. *      Will change automatically if the user resizes the window.
  657.     
  658.  
  659. (I) EXAMPLE .login file.
  660.  
  661.    from a CLI or the startup-script say 'SHELL filename'.  That file
  662.    is sourced first.  thus, 'SHELL .login' will set up your favorite
  663.    aliases:
  664.  
  665. ------------------------------------------------------------------------
  666. .LOGIN
  667. ------------------------------------------------------------------------
  668.  
  669. # -Steve's .login file- #
  670.  
  671. echo -n    "Enter Date [DD-MMM-YY HH:MM] ";input new; DATE $new
  672.  
  673. # ------My search path ------- #
  674.  
  675. set   _path  ram:c/,ram:,c:,df0:c/,df1:c/,sys:system/,sys:utilities
  676.  
  677. # -------Function keys-------- #
  678.  
  679. set   f1     dir df0:
  680. set   f2     dir df1:
  681. set   F1     dir -s df0:
  682. set   F2     dir -s df1:
  683. set   f3     info
  684. set   f4     ps
  685.  
  686. # ---------Quickies---------- #
  687.  
  688. # -query delete- #
  689. #another favorite eg    qd *.c
  690. alias qd "%q foreach i ( $q ) \"echo -n Delete [n] ;input a;if $a = y;del $i;endif\""
  691.  
  692. alias delete rm
  693. alias rename mv
  694. alias makedir mkdir
  695. alias type  cat
  696. alias print "%q copy $q prt:"
  697. alias info  "devinfo df0: df1: ram:"
  698. alias tosys "assign c: SYS:c"
  699. alias toram "assign c: RAM:c;"
  700. alias tomanx "assign c: MANX:c; manxinit"
  701. alias d     "dir -s"
  702. alias clr   "echo -n ^l"
  703. alias wb    "loadwb"
  704. alias pref  "sys:preferences"
  705. alias cal   "run sys:utilities/calculator"
  706.  
  707. # ------Applications---------- #
  708.  
  709. alias em    "run emacs"
  710. alias vt    "run sys:c/VT100"
  711.  
  712. # --------Finish Up----------- #
  713.  
  714. ver ;echo -n "Shell loaded on ";date
  715.  
  716.  
  717. ------------------------------------------------------------------------
  718. MANXINIT.SH
  719. ------------------------------------------------------------------------
  720. SET INCLUDE=AC:include CCTEMP=ram:
  721. makedir ram:lib;Set CLIB=RAM:lib/;copy AC:lib/$libfile ram:lib"
  722. alias    cleanup    "del >NIL: ram:lib/* ram:lib"
  723.  
  724. #run make in background at lower priority:
  725. alias    make    "%q run ChangeTaskPri -5 +^J^J MAKE $q"
  726.  
  727.  
  728.